package com.xing.server.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author xingfuhao
 * @since 2021-11-28
 */

/**
 * <p>
 *
 * </p>
 *
 * @author Jiayu.Yang
 * @since 2021-11-15
 */
//@Data
//@NoArgsConstructor
//@RequiredArgsConstructor
////重写hashcode，equals
//@EqualsAndHashCode(callSuper = false ,of = "name")
//@Accessors(chain = true)
//@TableName("t_nation")
//@ApiModel(value="Nation对象", description="")
//public class Nation implements Serializable {
//
//    private static final long serialVersionUID = 1L;
//
//    @ApiModelProperty(value = "id")
//    @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;
//
//    @ApiModelProperty(value = "民族")
//    @Excel(name = "民族")
//    @NonNull
//    private String name;
@Data
//无参数构造
@NoArgsConstructor
@RequiredArgsConstructor
@EqualsAndHashCode(callSuper = false,of = "name")
@Accessors(chain = true)
@TableName("t_nation")
@ApiModel(value="Nation对象", description="")
public class Nation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "民族")
    @Excel(name = "民族")
    @NonNull
    private String name;


}
